package com.right.common;

import java.io.Serializable;


public class ResponseData<T> implements Serializable{

    private T data;
    private String msg;
    private int code;
    public ResponseData(int code , String msg) {
        this.msg = msg;
        this.code = code;
    }
    public ResponseData(T data) {
        this.msg = "success";
        this.code = 1;
        this.data = data;
    }

    public T getData() {
        return  data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
